#ifndef APP_IAP_H
#define APP_IAP_H


typedef unsigned char		UCHAR;
typedef unsigned short		USHORT;
typedef unsigned long		ULONG;
typedef char				CHAR;
typedef short				SHORT;
typedef long				LONG;


#define CMD_IAP_BEGIN		(0xDD)
#define CMD_IAP_TRANS		(0xD5)
#define CMD_IAP_VERIFY		(0xD7)

#define BOOT_STEP_WAIT				(0x00)
#define BOOT_STEP_START				(0x01)
#define BOOT_STEP_ERASE				(0x02)
#define BOOT_STEP_DATA_TRANS		(0x03)
#define BOOT_STEP_RET_CONFIRM		(0x04)

#define ACK		(0X06)
#define NAK		(0X15)
#define ERR		(0X16)

#endif
